import request from '@/utils/request'

// 注册
export const register = data => {
  return request({
    method: 'POST',
    url: '/h5/user/register',
    data
  })
}

// 登录
// export const login = (data) => {
//   return request.post('/h5/user/login', data)
// }
export const login = data => {
  return request({
    method: 'POST',
    url: '/h5/user/login',
    data
  })
}
